/**
 * 定义前端所有路由
 */
// import Layout from '@/views/layout/Layout'
import { AppMain } from '@/views/layout/components'
export default [
  {
    path: '',
    name: '车辆资产管理',
    meta: { title: '车辆资产管理', icon: 'component', roles: ['admin'] },
    component: (resolve) => require(['@/views/layout/Layout'], resolve),
    type: 1,
    children: [
      {
        path: '/vendor/carMgt',
        component: AppMain,
        name: '车辆管理',
        redirect: '/vendor/carMgt',
        meta: { title: '车辆管理', icon: 'example' },
        type: 2,
        children: [
          // { path: 'makeBrand', name: '制造商与品牌', type: 3, component: () => import('@/views/deployMgt/makeBrand'), meta: { title: '制造商与品牌', icon: 'table' }},
          // { path: 'audiVehicle', name: '车系车型', type: 3, component: () => import('@/views/deployMgt/audiVehicle'), meta: { title: '车系车型', icon: 'table' }},
          // { path: 'carType', name: '车型配置', type: 3, component: () => import('@/views/deployMgt/carType'), meta: { title: '车型配置', icon: 'table' }},
          { path: 'carDetail', name: '车辆管理', type: 3, component: () => import('@/views/deployMgt/carDetail'), meta: { title: '车辆管理', icon: 'table' }}
        ]
      },
      {
        path: '/vendor/monitor',
        component: AppMain,
        name: '车辆情况监控',
        redirect: '/vendor/monitor',
        meta: { title: '车辆情况监控', icon: 'example' },
        hidden: true,
        type: 2,
        children: [
          { path: 'carSituation', name: '车况监控', type: 3, component: () => import('@/views/monitorMgt/carSituation'), meta: { title: '车况监控', icon: 'table' }},
          { path: 'carSituationChartsShow', name: '车况图表', hidden: true, type: 3, component: () => import('@/views/monitorMgt/carSituationChartsShow'), meta: { title: '车况图表', icon: 'table' }}
        ]
      },
      {
        path: '/vendor/monitor',
        component: AppMain,
        name: '实时监控',
        redirect: '/vendor/monitor',
        meta: { title: '实时监控', icon: 'example' },
        type: 2,
        children: [
          { path: 'bigScreenChartsShow', name: '实时监控', type: 3, component: () => import('@/views/monitorMgt/bigScreenChartsShow'), meta: { title: '实时监控', icon: 'table' }}
        ]
      },
      {
        path: '/vendor/monitor',
        component: AppMain,
        name: '统计报表',
        redirect: '/vendor/monitor',
        meta: { title: '统计报表', icon: 'example' },
        type: 2,
        children: [
          { path: 'statisticalReport', name: '统计报表', type: 3, component: () => import('@/views/monitorMgt/statisticalReport'), meta: { title: '统计报表', icon: 'table' }}
        ]
      }
    ]
  }
]

